import React, { Component } from 'react'
// 引入页面组件
import Home from '../router-view/Home';
import Category from '../router-view/Category';
import Car from '../router-view/Car';
import Mine from '../router-view/Mine';

import { Route } from 'react-router-dom'
export default class Index extends Component {
    render() {
        return (
            <>
                <Route path='/home' component={Home}></Route>
                <Route path='/category/:id/:id1?' component={Category}></Route>
                <Route path='/car' component={Car}></Route>
                <Route path='/mine' component={Mine}></Route>
            </>
        )
    }
}
